package com.witmore.skyline.web.controller.vo.param;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * Description: DeviceOilListParamVO
 * Author: 豆子高
 * Date: 2025/2/25 14:42
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeviceOilListParamVO {
    /**
     * 设备编号
     */
    @NotNull(message = "设备编号不能为空")
    private String deviceSn;

    /**
     * 查询开始时间，时间格式：yyyy-MM-dd HH:mm:ss
     */
    @NotNull(message = "开始时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    private String startTimeStr;

    /**
     * 查询结束时间，时间格式：yyyy-MM-dd HH:mm:ss
     */
    @NotNull(message = "结束时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    private String endTimeStr;


}
